/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package omg.SongHandling.DataHandling;

import omg.Error.ConverterCreationFailedError;
import omg.Error.NoConnectionError;

/**
 * A general converter signaling responsibility for all streams without
 * actuallay supplying any convertion functionality.
 */
public class ConverterGeneric extends Converter {
    
        /**
         * A general converter signaling responsibility for all streams without
         * actuallay supplying any convertion functionality.
         * @param stream
         * @throws ConverterCreationFailedError
         * @throws NoConnectionError
         */
        public ConverterGeneric (Stream stream) throws
            ConverterCreationFailedError, NoConnectionError {
            super(stream);
            if (!ConverterGeneric.isResponsibleFor(stream))
                throw new ConverterCreationFailedError();
        }

    	/**
	 * Checks whether an this Converter can handle the supplied stream.
         * @param stream the Stream to check for
	 * @return true, if the parse realizations considers itself responsible
         * for the supplied Stream, otherwise false
	 */
	public static boolean isResponsibleFor(Stream stream) {
		return true;
	}
}
